﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using MBS.UserControls.CinemaUserControl;

namespace MBS
{
    public partial class CinemaView : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {

            }

            ViewCinemaControl1.RemoveCinemaSuccesull += new ViewCinemaControl.RemoveCinemaHandler(RemoveCinemaUserControl1_RemoveCinemaSuccesull);
            ViewCinemaControl1.RemoveCinemaFailed += new ViewCinemaControl.RemoveCinemaHandler(RemoveCinemaUserControl1_RemoveCinemaFailed);
            ViewCinemaControl1.CinemaUpdateComplete += new ViewCinemaControl.CinemaUpdateHandler(UpdateCinemaUserControl1_CinemaUpdateComplete);
            ViewCinemaControl1.CinemaUpdateFailed += new ViewCinemaControl.CinemaUpdateHandler(UpdateCinemaUserControl1_CinemaUpdateFailed);
        
        }

        void RemoveCinemaUserControl1_RemoveCinemaFailed()
        {
            string x = "Cinema Removed Failed";

            ClientScript.RegisterStartupScript(this.GetType(), "sad", "javascript:showAlert('" + x + "')", true);
        }

        void RemoveCinemaUserControl1_RemoveCinemaSuccesull()
        {
            string x = "Cinema Removed Successfully";

            ClientScript.RegisterStartupScript(this.GetType(), "sad", "javascript:showAlert('" + x + "')", true);
        }

      

        void UpdateCinemaUserControl1_CinemaUpdateFailed()
        {

            string x = "Cinema Update Failed";

            ClientScript.RegisterStartupScript(this.GetType(), "sad", "javascript:showAlert('" + x + "')", true);

        }

        void UpdateCinemaUserControl1_CinemaUpdateComplete()
        {
            string x = "Cinema Update Successfull";

            ClientScript.RegisterStartupScript(this.GetType(), "sad", "javascript:showAlert('" + x + "')", true);


        }
    }
}